package cn.jeefast.rest.service;

import cn.jeefast.common.entity.MbCode;
import cn.jeefast.common.utils.R;
import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author theodo
 * @since 2019-12-30
 */
public interface MbCodeService extends IService<MbCode> {

    /**
     * 获取验证码
     * @param phone
     * @return
     */
    R getCode(String phone);

    /**
     * 验证验证码是否正确
     * @param phone
     * @param code
     * @return
     */
    R checkCode(String phone ,String code);
}
